<?php
function includeModule ($moduleInfo)
{
	//die();
	foreach ($moduleInfo as $aModuleInfo)
	{
		$aModuleInfo = str_replace ('(module::', '', str_replace (')', '', $aModuleInfo));
		$aModuleInfo = explode ('|', $aModuleInfo);
		$sModuleName = $aModuleInfo[0];
		if (isset ($aModuleInfo[1]))
		{
			$aModuleInfo = explode (',', $aModuleInfo[1]);
			foreach ($aModuleInfo as $sModuleArgs)
			{
				$sArgument = explode ('=', $sModuleArgs);
				$_ARRAY[$sArgument[0]] = $sArgument[1];
			}
			return get_include_contents ('modules/' . $sModuleName . '/index.php', $_ARRAY);
		}
		else
		{
			return get_include_contents ('modules/' . $sModuleName . '/index.php');
		}
	}
}